package com.todo.event.activity.infrastructure.mapper;

import com.todo.event.activity.infrastructure.entity.po.EventFieldInfoPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author azhebuxing
 * @date 2025/1/6 19:33
 * @description
 */
@Mapper
public interface EventFieldInfoMapper {

    int insertEventFieldInfoPO(EventFieldInfoPO eventFieldInfo);

    int insertBatch(@Param("entities") List<EventFieldInfoPO> eventFieldInfoPOList);

    int updateEventFieldInfoPOById(EventFieldInfoPO eventFieldInfo);

    int removeEventFieldInfoPOById(@Param("id") Long id);

    EventFieldInfoPO queryEventFieldInfoPOById(@Param("id") Long id);

    List<EventFieldInfoPO> queryListByEventCode(@Param("eventCode") String eventCode);

    int removeEventFieldByEventCode(@Param("eventCode") String eventCode);
}
